package day07.poker;

public class Run {
	public static void main(String[] args) {
		Poker p = new Poker();
		Player p1 = new Player();
		Player p2 = new Player();
		Player p3 = new Player();

		p1.shuffer(p);
		for (int i = 0; i < p.cards.length; i++) {
			System.out.println(p.cards[i].color + p.cards[i].pointer);
		}
		
		p3.deal(p, p1, p2);
		
		System.out.println("p1的手牌: ");
		for (int i = 0; i < p1.cards.length; i++) {
			System.out.println(p1.cards[i].color + p1.cards[i].pointer);
		}
		
		System.out.println("p2的手牌: ");
		for (int i = 0; i < p2.cards.length; i++) {
			System.out.println(p2.cards[i].color + p2.cards[i].pointer);
		}
		
		System.out.println("p3的手牌: ");
		for (int i = 0; i < p3.cards.length; i++) {
			System.out.println(p3.cards[i].color + p3.cards[i].pointer);
		}
		
		System.out.println("底牌: ");
		System.out.println(p.cards[51].color + p.cards[51].pointer);
		System.out.println(p.cards[52].color + p.cards[52].pointer);
		System.out.println(p.cards[53].color + p.cards[53].pointer);

	}
}
